<template>
  <div id="app">
    <lay-nav class="header"></lay-nav>
    <div class="category">Good, 使用element-ui的侧边栏弹出
      <el-button type="success" @click='toPath("home")'>good</el-button>
      <router-link :to="{name: 'borrow'}">borrow</router-link>
    </div>
    <div class="content"><router-view /></div>
  </div>
</template>

<script>
import LayNav from 'components/content/LayNav/LayNav'

export default {
  name: 'app',
  components: {
    LayNav
  },
  methods: {
    toPath(routerPath) {
      this.$router.push({name: routerPath})
    }
  }
}
</script>

<style>
@import url('assets/css/normalize.css');
@import url('assets/css/base.css');
</style>
